package com.bamboo.statistics.feign;

import com.bamboo.statistics.feign.fallback.UCenterFeignClientFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 订单服务feignClient
 *
 * @author jack.wu
 */
@FeignClient(value = "service-ucenter", fallback = UCenterFeignClientFallback.class)
public interface UCenterFeignClient {

    /**
     * 查询当天注册人数
     * @param day 当天
     * @return 注册人数
     */
    @GetMapping("registerCount/{day}")
    int getRegisterCount(@PathVariable("day") String day);


}
